<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title> 文档 </title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="description" content="Description">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <link rel="icon" href="./favicon.ico">
  <link rel="stylesheet" href="./assets/css/vue.css">
  <link rel="stylesheet" href="./assets/css/mermaid.min.css">
  <link rel="stylesheet" href="./assets/css/common.css">
</head>

<body>
  <div id="app">加载中...</div>
  <!-- 监听页签切换 -->
  <script>
    let titleTimeOut = null
    // 设置页头
    document.addEventListener('visibilitychange', () => {
      if (document.visibilityState === 'hidden') {
        window.clearTimeout(titleTimeOut)
        document.title = '您已离开 ...'
      } else {
        document.title = '欢迎回来！！！'
        titleTimeOut = setTimeout(() => {
          document.title = '文档'
        }, 1000)
      }
    })

    // 阻止鼠标右键
    document.oncontextmenu = function() {
      return false
    }
  </script>
  <script src="./assets/js/mermaid.min.js"></script>
  <!--  -->
  <script>
    var num = 0;
    mermaid.initialize({ startOnLoad: false });
    window.$docsify = {
      routerMode: 'hash', // 'hash',history
      // logo: './assets/images/logo.jpg' ,
      // relativePath: true,
      name: 'Continue',
      nameLink: {
        '/zh-cn/': '#/zh-cn/',
        '/': '#/',
      },
      repo: 'https://gitee.com/Continue-views/blogs',//配置仓库地址
      maxLevel: 4,//最大支持渲染的标题层级
      subMaxLevel: 4,//目录的最大层级
      loadNavbar: true,//加载自定义导航栏
      onlyCover: true,//只在访问主页时加载封面。
      coverpage: true,//是否显示封面。
      // coverpage: ['/', '/zh-cn/'],//多个封面
      homepage: 'README.md',//设置首页文件加载路径。
      executeScript: true,//执行文档里的 script 标签里的脚本，只执行第一个 script
      loadSidebar: true,//加载自定义侧边栏
      autoHeader: true,
      // hideSidebar: true,
      auto2top: true,//切换页面后是否自动跳转到页面顶部
      mergeNavbar: true,//小屏设备下合并导航栏到侧边栏。
      formatUpdated: '{YYYY}-{MM}-{DD} {HH}:{mm}:{ss}',
      // formatUpdated: function(time) {
      //   // ...
      //   return time;
      // },
      //ga: 'UA-XXXXX-Y',
      topMargin: 60, // default: 0,让你的内容页在滚动到指定的锚点时，距离页面顶部有一定空间。
      search: {
        //maxAge: 86400000, // 过期时间，单位毫秒，默认一天
        paths: 'auto',
        placeholder: '搜索',
        noData: '找不到结果',
        depth: 6,// 搜索标题的最大程级, 1 - 6
      },
      copyCode: {
        buttonText: {
          '/zh-cn/': '点击复制',
          '/ru/'   : 'Скопировать в буфер обмена',
          '/de-de/': 'Klicken Sie zum Kopieren',
          '/es/'   : 'Haga clic para copiar',
          '/'      : 'Copy to clipboard'
        },
        errorText: {
          '/zh-cn/': '错误',
          '/ru/'   : 'ошибка',
          '/'      : 'Error'
        },
        successText: {
          '/zh-cn/': '复制',
          '/ru/'   : 'Скопировано',
          '/de-de/': 'Kopiert',
          '/es/'   : 'Copiado',
          '/'      : 'Copied'
        }
      },
      pagination: {
        previousText: '上一章节',
        nextText: '下一章节',
        crossChapter: true,
        crossChapterText: true,
      },
      count:{
        countable: true,
        position: 'top',
        margin: '10px',
        float: 'right',
        fontsize:'0.9em',
        color:'rgb(90,90,90)',
        language:'chinese',
        localization: {
          words: "",
          minute: ""
        },
        isExpected: true
      },
      plugins: [
        function(hook, vm) {
          hook.beforeEach(function(html) {
            var header = '<div style="text-align: right">最后编辑时间：{docsify-updated}</div>'
            return (
              header +
              html
            );
          });
        },
        function(hook) {
          var footer = ['<footer style="text-align: center"><span><a href="https://gitee.com/Continue-views">YuJie</a> &copy;2021. </span></footer>'].join('');
          hook.afterEach(function(html) {
            return html + footer;
          });
        }
      ],
      markdown: {
        renderer: {
          code: function(code, lang) {
            if (lang === "mermaid") {
              return (
                '<div class="mermaid">' + mermaid.render('mermaid-svg-' + num++, code) + "</div>"
              );
            }
            return this.origin.code.apply(this, arguments);
          }
        }
      }
    }
  </script>
  <!-- docsify -->
  <script src="./assets/js/docsify.min.js"></script>
  <!-- 搜索 -->
  <script src="./assets/js/search.min.js"></script>
  <!-- 表情 -->
  <script src="./assets/js/emoji.min.js"></script>
  <!-- 图片放大 -->
  <script src="./assets/js/zoom-image.min.js"></script>
  <!-- 复制 -->
  <script src="./assets/js/docsify-copy-code.min.js"></script>
  <!-- 分页 -->
  <script src="./assets/js/docsify-pagination.min.js"></script>
  <!-- 字数 -->
  <script src="./assets/js/countable.min.js"></script>
  <!-- 友盟统计 -->
  <script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_1279630243'%3E%3C/span%3E%3Cscript src='https://s9.cnzz.com/z_stat.php%3Fid%3D1279630243%26online%3D1' type='text/javascript'%3E%3C/script%3E"));</script>
</body>
</html>